package word418.compclass;

public class chore extends school{
    public chore(){}
    public chore(String name, double weigh, double stature) {
        this.name = name;
        this.weigh = weigh;
        this.stature = stature;
    }

    private String name;
    private double weigh;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWeigh() {
        return weigh;
    }

    public void setWeigh(double weigh) {
        this.weigh = weigh;
    }

    public double getStature() {
        return stature;
    }

    public void setStature(double stature) {
        this.stature = stature;
    }

    private double stature;
    public double getBmi() {
        return weigh/(stature*stature);
    }
}
